package com.woniu.immunologicalmechanism.service;

import com.woniu.common.entity.Organization;
import com.woniu.common.entity.ResponseResult;

import java.util.List;

public interface OrganizationService {
    //添加机构
    ResponseResult addorganization(Organization organization);
    //修改机构信息
    ResponseResult updateorganization(Organization organization);
    //删除机构
    ResponseResult deleteorganization(int oid);
    //根据id查询免疫机构信息
    ResponseResult<Organization> selectOrganization(int oid);
    //根据名字模糊查询所有免疫机构信息
    ResponseResult<List<Organization>> selectOrganizationByname(String oname);
    //根据员工id查询对应机构信息
    ResponseResult<List<Organization>> getOrganizationByuid(int uid);
}
